<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>ColorPicker</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title=""></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/Accordion.html">Accordion</a></li>
            
                <li><a href="../classes/AutoComplete.html">AutoComplete</a></li>
            
                <li><a href="../classes/Button.html">Button</a></li>
            
                <li><a href="../classes/Carousel.html">Carousel</a></li>
            
                <li><a href="../classes/ColorPicker.html">ColorPicker</a></li>
            
                <li><a href="../classes/Combobox.html">Combobox</a></li>
            
                <li><a href="../classes/DateTimePicker.html">DateTimePicker</a></li>
            
                <li><a href="../classes/Grid.html">Grid</a></li>
            
                <li><a href="../classes/ListView.html">ListView</a></li>
            
                <li><a href="../classes/Popover.html">Popover</a></li>
            
                <li><a href="../classes/ProgressBar.html">ProgressBar</a></li>
            
                <li><a href="../classes/RichTextEditor.html">RichTextEditor</a></li>
            
                <li><a href="../classes/ScrollSpy.html">ScrollSpy</a></li>
            
                <li><a href="../classes/Select.html">Select</a></li>
            
                <li><a href="../classes/SideBar.html">SideBar</a></li>
            
                <li><a href="../classes/Slider.html">Slider</a></li>
            
                <li><a href="../classes/Spinner.html">Spinner</a></li>
            
                <li><a href="../classes/Tab.html">Tab</a></li>
            
                <li><a href="../classes/ToolBar.html">ToolBar</a></li>
            
                <li><a href="../classes/Tooltip.html">Tooltip</a></li>
            
                <li><a href="../classes/Tree.html">Tree</a></li>
            
                <li><a href="../classes/Wizard.html">Wizard</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>ColorPicker Class</h1>
<div class="box meta">
    

    

    
        <div class="foundat">
            Defined in: <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l12"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:12</code></a>
        </div>
    

    

    
</div>



<div class="box intro">
    <p>颜色选择器，来自www.eyecon.ro</p>

</div>


    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_ColorPicker" class="method item">
    <h3 class="name"><code>ColorPicker</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l12"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:12</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
        <div class="example">
            <h4>Example:</h4>

            <div class="example-content">
                <pre class="code prettyprint"><code>js代码
$(function(){
        $(&#39;#colorpickerField1&#39;).ColorPicker({
            onChange: function(hsb, hex, rgb, el) {
                $(&quot;#colorpickerField1&quot;).val(hex);
                //$(this).ColorPickerHide();
            },
            onBeforeShow: function () {
                $(this).ColorPickerSetColor(this.value);
            }
        })
    })

    html代码
    #&lt;input type=&quot;text&quot; value=&quot;00ff00&quot; id=&quot;colorpickerField1&quot; size=&quot;6&quot; maxlength=&quot;6&quot;&gt;</code></pre>

            </div>
        </div>
    
</div>

    </div>


<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties">
                        
                            <li class="index-item property">
                                <a href="#property_color">color</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_eventName">eventName</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_livePreview">livePreview</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_onBeforeShow">onBeforeShow</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_onChange">onChange</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_onHide">onHide</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_onShow">onShow</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_onSubmit">onSubmit</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
        </div>

        

        
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                
                    <div id="property_color" class="property item">
    <h3 class="name"><code>color</code></h3>
    <span class="type">String</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l83"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:83</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>默认颜色</p>

    </div>

    
        <p><strong>Default:</strong> &#x27;ff0000&#x27;</p>
    

    

    
</div>

                
                    <div id="property_eventName" class="property item">
    <h3 class="name"><code>eventName</code></h3>
    <span class="type">String</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l41"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:41</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>显示ColorPicker的事件</p>

    </div>

    
        <p><strong>Default:</strong> &#x27;click&#x27;</p>
    

    

    
</div>

                
                    <div id="property_livePreview" class="property item">
    <h3 class="name"><code>livePreview</code></h3>
    <span class="type">Boolean</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l90"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:90</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>是否预览</p>

    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_onBeforeShow" class="property item">
    <h3 class="name"><code>onBeforeShow</code></h3>
    <span class="type">Function</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l55"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:55</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>显示颜色选择器之前的回调函数</p>

    </div>

    
        <p><strong>Default:</strong> function () {}</p>
    

    

    
</div>

                
                    <div id="property_onChange" class="property item">
    <h3 class="name"><code>onChange</code></h3>
    <span class="type">Function</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l69"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:69</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>颜色选择器内部改变值时的回调函数</p>

    </div>

    
        <p><strong>Default:</strong> function () {}</p>
    

    

    
</div>

                
                    <div id="property_onHide" class="property item">
    <h3 class="name"><code>onHide</code></h3>
    <span class="type">Function</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l62"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:62</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>隐藏颜色选择器的回调函数</p>

    </div>

    
        <p><strong>Default:</strong> function () {}</p>
    

    

    
</div>

                
                    <div id="property_onShow" class="property item">
    <h3 class="name"><code>onShow</code></h3>
    <span class="type">Function</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l48"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:48</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>显示颜色选择器的回调函数</p>

    </div>

    
        <p><strong>Default:</strong> function () {}</p>
    

    

    
</div>

                
                    <div id="property_onSubmit" class="property item">
    <h3 class="name"><code>onSubmit</code></h3>
    <span class="type">Function</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/_home_zjh_git_Koala-UI_KoalaUI_WebContent_lib_Koala_ColorPicker.js.html#l76"><code>&#x2F;home&#x2F;zjh&#x2F;git&#x2F;Koala-UI&#x2F;KoalaUI&#x2F;WebContent&#x2F;lib&#x2F;Koala_ColorPicker.js:76</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>提交时的回调函数</p>

    </div>

    
        <p><strong>Default:</strong> function () {}</p>
    

    

    
</div>

                
            </div>
        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
